home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 1029 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  879 b 

  1. Path: news.internex.net!usenet
  2. From: ian_stewart@nyro.com (Ian H. Stewart)
  3. Newsgroups: comp.lang.c,comp.lang.objective-c
  4. Subject: Comma Delimited function wanted
  5. Date: 11 Jan 1996 00:20:18 GMT
  6. Organization: InterNex Information Services 1-800-595-3333
  7. Distribution: world
  8. Message-ID: <4d1l42$mb6@voyager.Internex.NET>
  9. Reply-To: ian_stewart@nyro.com (Ian H. Stewart)
  10. NNTP-Posting-Host: ws03.nyro.com
  11.  
  12. Help with a comma delimited function needed.
  13.  
  14. I did this once before, but I am blocked and can't
  15. find the original source.
  16.  
  17. Here is what I need to do:
  18.  
  19. I have a buffer full of text.
  20.  
  21. char buffer = "3740067099,914885AC2,P03,5000";
  22.  
  23. I have four char vars to put this into.
  24.  
  25. char field1[20], field2[20], field3[20], field4[20];
  26.  
  27. What I want to do is get this as the end result.
  28.  
  29.  
  30. field1 = 3740067099
  31. field2 = 914885AC2
  32. field3 = P03
  33. field4 = 5000
  34.  
  35.  
  36. Anyway, help is appreciated.
  37.  
  38. ian
  39.